{extend name="admin/layout" /}
{block name="main"}
<div class="row">
    <div class="col-md-12">
        <div class="widget">
            <header class="widget-header">
                <h4 class="widget-title">分站列表
                </h4>
            </header><!-- .widget-header -->
            <hr class="widget-separator">
            <div class="widget-body">
                <form method="post">
                    <input type="hidden" name="action" value="search">
                    <div class="input-group xs-mb-15">
                        <input type="text" placeholder="请输入要搜索的站点名称！" name="s" class="form-control text-center"
                               required>
                        <span class="input-group-btn">
                        <button type="submit" class="btn btn-primary">立即搜索</button>
                        </span>
                    </div>
                </form>
            </div>
            <hr class="widget-separator">
            <div class="widget-body table-responsive">
                <table class="table table-hover table-striped">
                    <thead>
                    <tr>
                        <th>ZID</th>
                        <th>站点名称</th>
                        <th>剩余金额</th>
                        <th style="width: 150px; text-align: center">充值</th>
                        <th>站长QQ</th>
                        <th>UPID</th>
                        <th>UID</th>
                        <th>开通时间</th>
                        <th>绑定域名</th>
                        <th>赠送域名</th>
                        <th>到期时间</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    {volist name="$webList" id="web"}
                    <tr>
                        <td>{if condition="$web.super eq 1"}<font color="red">{/if}{$web.zid}</font></td>
                        <td>{$web.name}</td>
                        <td>{$web.point}</td>
                        <td class="text-center">
                            <form method="post">
                                <input type="hidden" name="action" value="cz">
                                <input type="hidden" name="uid" value="{$web.uid}">
                                <input type="text" name="point" value="10" style="width: 80px;;">
                                <input type="submit" value="充值">
                            </form>
                        </td>
                        <td>{$web.qq}</td>
                        <td>{$web.upzid}</td>
                        <td>{$web.uid}</td>
                        <td>{$web.addtime}</td>
                        <td>{$web.domain}</td>
                        <td>{$web.domain2}</td>
                        <td>{$web.endtime}</td>
                        <td>
                            <a href="?action=del&zid={$web.zid}" class="btn-xs btn-warning"
                               onclick="return confirm('确认删除？');">删除</a>
                            <a href="{:url('webSet',['zid'=>$web.zid])}" class="btn-xs btn-info">修改</a>
                        </td>
                    </tr>
                    {/volist}
                    </tbody>
                </table>
                <div class="text-center">{$pageList->showPage()}</div>
            </div>
        </div>
    </div>
</div>
{/block}